/*
 * @Author       : NaN 353362604@qq.com
 * @Date         : 2023-07-10 14:21:29
 * @LastEditTime : 2023-07-10 14:39:22
 * @LastEditors  : NaN 353362604@qq.com
 * @FilePath     : \AdminStration\src\Pages\Front\Assets\Common\TwoNav.jsx
 * @Description  :
 */

import './Scss/TwoNav.scss'

// 一体横向导航
export const TwoNav001 = ({ pathname, child, title, active, Navigate }) => {
    return (
        <div className="TwoNav001">
            {child.length !== 1 &&
                child.map(({ title, path }) => (
                    <div key={path} onClick={() => Navigate(path)}>
                        <div>{title}</div>
                        {active && pathname === path && <img src={active} alt="" />}
                    </div>
                ))}
        </div>
    )
}
